import 'package:sil_utils_package/sil_utils_package.dart';

class SelectAvatorEntity {
  String? id;
  String? type;
  String? title;
  String? image;
  bool? isSelect = false;

  SelectAvatorEntity({
    this.id,
    this.type,
    this.title,
    this.image,
    this.isSelect = false,
  });

  SelectAvatorEntity.fromJson(Map<String, dynamic> json) {
    id = SilEntityLog.handleString(json, 'id');
    type = SilEntityLog.handleString(json, 'type');
    title = SilEntityLog.handleString(json, 'title');
    image = SilEntityLog.handleString(json, 'image');
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['type'] = this.type;
    data['title'] = this.title;
    data['image'] = this.image;
    return data;
  }
}
